package com.example.shop_front_api.service;

import com.example.shop_front_api.entity.Cart;
import java.util.List;

public interface CartService {
    int insertCart(Cart cart);

    Cart getCart(Integer memberId, Integer productId);

    int updateCart(Integer memberId, Integer productId, Integer quantity);

    List<Cart> getCartListByMemberId(Integer memberId);

    Double getCartTotalAmount(Integer memberId);

    int deleteCartProductById(Integer id);

    int updateSelectedById(Long id, Integer selected);

    List<Cart> getCartListByMemberIdSelected(Integer memberId);

    int batchUpdateSelected(String ids, Integer selected);

    int updateCartQuantity(Integer id, Integer quantity);
}